<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			#d1{
				width: 100px;
				height: 100px;
				background-color: #008000;
				transform: translate(50%,100px);
			}
			#d2{
				width: 100px;
				height: 100px;
				background-color: #0000FF;
				transform: translateX(200px);
			}
			#d3{
				width: 100px;
				height: 100px;
				background-color: #FF0000;
				transform: translateY(100px);
			}
			#d4{
				width: 100px;
				height: 100px;
				background-color: #F17704;
				transform: translateZ(45px);
			}
			#d5{
				width: 100px;
				height: 100px;
				background-color: #00BFFF;
				position: relative;/* 相对定位 */
				top: -130px;
				left: 200px;
				transform: rotate(30deg);
			}
			#d6{
				width: 100px;
				height: 100px;
				background-color: #FFA500;
				position: relative;/* 相对定位 */
				top: -380px;
				left: 350px;
				transform: scale(0.5);
			}
			#d7{
				width: 100px;
				height: 100px;
				background-color: #FFA500;
				position: relative;/* 相对定位 */
				top: -380px;
				left: 350px;
				transform: rotate(30deg) scale(0.5) translate(30px,100px);
			}
		</style>
	</head>
	<body>
		transform
			位移：translate(50%,100px); x,y如果是百分比，表示自身宽或高德百分比
			
		<div id="d1">
			
		</div>
		<div id="d2">
			
		</div>
		<div id="d3">
			
		</div>
		<div id="d4">
			
		</div>
		
		旋转
		<div id="d5">
			
		</div>
		缩放
		<div id="d6">
			
		</div>
		<div id="d7">
			
		</div>
	</body>
</html>
